<#assign base=(rc.getContextPath())!''>
	<table style="width:60%;" align="center" border="1">
		<tr>
			<th width="20%">序号</th>
			<th width="20%">empno</th>
			<th width="20%">ename</th>
			<th width="40%">操作</th>
		</tr>
	  	<#list pagingInfo.list as item>
	  		<tr align="center">
	  			<td>${item_index+1}</td>
		  		<td>${item.EMPNO}</td>
		  		<td>${item.ENAME}</td>
		  		<td>
		  			<a href="${base}/emp/${item.EMPNO}/edit.html">修改</a> | 
		  			<a href="${base}/emp/${item.EMPNO}/put.html">PUT</a> |
		  			<a href="javascript:void(0)" onclick="deleteOne('${item.EMPNO}')">删除</a>
		  		</td>
		  	</tr>
	  	</#list>
	  	<tr>
	  		<td colspan="4" align="center">
	  			<div id="page" align="center">
					<@p.turnPage pagingInfo "page" /> 
				</div>
	  		</td>
	  	</tr>
	</table>
	
	

	
<script type="text/javascript">
	
	$("#page li").click(function(){
		//用于post的JSON格式数据字符串
		var strJSON = "{'ename':'" + $("input[name='ename']").val()
					+ "', 'dname':'" + $("input[name='dname']").val() 
					+ "'}";
					
		turnPage($(this), 'page', 'content', '${base}/emp/page', '', strJSON );
			
		return false;
		
	});
	
	$("#page input").change(function(){
		
		var strJSON = "{'ename':'" + $("input[name='ename']").val()
					+ "', 'dname':'" + $("input[name='dname']").val() 
					+ "'}";
		directToPage($(this), '${pagingInfo.pageNum}', 'content', '${base}/emp/page', '', strJSON);
		
	});

</script>
	